<?php



Route::prefix('zadmin')->namespace('Admin')->group(function(){
	Route::middleware('checkAdmin')->group(function(){
		
		Route::get('refresh-geo','IndexController@refreshGeo')	;
		Route::get('refresh-billboard','IndexController@refreshBillboard');	
		Route::resource('admins',     'AdminController');
		Route::resource('users',      'UserController');
		Route::resource('banner',     'BannerController');
		Route::resource('menus',      'MenuController');
		Route::resource('services',   'ServiceController');
		Route::resource('billboard',   'BillboardController');
		Route::resource('votes',	   'VoteController');
		Route::get('bp-delete/{id}',   'BillboardPicController@delete');
		Route::get('bp-thumb',    'BillboardPicController@thumb');
		Route::resource('category',   'CategoryController');
		Route::resource('company',   'CompanyController');
		Route::get('service-area',		'ServiceAreaController@index');
		Route::get('service-area/add',	'ServiceAreaController@add');	
		Route::post('service-area/save','ServiceAreaController@save');	
		Route::get('service-area/delete/{id}',	'ServiceController@delete');
		Route::get('service-area/edit/{id}',	'ServiceController@edit');
		Route::post('service-area/update',		'ServiceController@update');

		
		

		
		
		//后台首页
		Route::get('/',		   'IndexController@index');
		
	});
		Route::get('login',    'LoginController@login');
		Route::post('logindo', 'LoginController@loginDo');
		Route::get('logout',   'LoginController@logOut');
		
	
});

Route::get('vote.html','IndexController@vote');
Route::post('vote-save','IndexController@voteSave');
Route::get('/','IndexController@index');
Route::any('plupload' ,'IndexController@plupload');






